<#assign sec=JspTaglibs["/WEB-INF/tags/security.tld"]>
<script type="text/javascript" src="${ctx}/assets/js/back/public-head.js"></script>

<div id="headDiv">	
    <div id="logoa">
    	<#if userSession.iconPathurl ??>
    		<img class="logo1" src="${userSession.iconPathurl!}">
    	<#else>
	    	<img class="logo1" src="${ctx}/assets/images/logo/company_logo.png">		
			<img class="logo2" src="${ctx}/assets/images/cut-off-rule.png">
    	</#if>
	</div>	
	<ul id="menu">
		<li><a class="dashboard" href="${ctx}/back/main/dashboard"><span>首页</span></a></li>

		<@sec.authorize access="hasAnyRole('ROLE_back_finance,ROLE_MANAGER')">
		<li><a class="main/finance" href="${ctx}/back/main/finance/finance-management"><span>财务管理</span></a></li>
		</@sec.authorize>
		
		<@sec.authorize access="hasAnyRole('ROLE_back_client_account,ROLE_MANAGER')">
		<li><a class="main/client-account" href="${ctx}/back/main/client-account"><span>客户账号管理</span></a></li>
		</@sec.authorize>
		
		<@sec.authorize access="hasAnyRole('ROLE_back_authority,ROLE_MANAGER')">
		<li><a class="authority" href="${ctx}/back/main/authority"><span>权限管理</span></a></li>  	
		</@sec.authorize>
		
	</ul>

	<div id="divselect" >
	    <div id="currentOpa">1
			<cite><li>${userSession.description}</li><li>${userSession.accountName}</li></cite>
		</div>
		<ul>
			<@sec.authorize access="hasAnyRole('ROLE_key_role')">
			<li><a href="${ctx}/back/main/role/list"><span>角色管理</span></a></li>  	
			</@sec.authorize>
			
			<@sec.authorize access="hasAnyRole('ROLE_key_resources')">
			<li><a href="${ctx}/back/main/resources/list"><span>菜单管理</span></a></li>  	
			</@sec.authorize>
			
			<@sec.authorize access="hasAnyRole('ROLE_key_account,ROLE_MANAGER')">
			<li><a href="${ctx}/back/main/account/list"><span>账号权限管理</span></a></li>  	
			</@sec.authorize>
			
			<li><a href="${ctx}/back/main/authority/loginperson" selectid="1">修改个人信息</a></li>

			<#if userSession.longinUrl ?? && userSession.longinUrl != ''>
	    		<li><a href="${ctx}/${userSession.longinUrl}" selectid="2">退出登录</a></li> 
	    	<#else>
	    		<li><a href="${ctx}/logout" selectid="2">退出登录</a></li> 
    		</#if>	
		</ul>
		<input type="hidden" value="${ctx!}" id="ctx"/>
		<input type="hidden" id="role" value="agent"/>
		<input type="hidden" id="sessionagentId" value="${userSession.agentId!}"/>
		<input type="hidden" id="sessionoperatorId" value="${userSession.operatorId!}"/>
		<input type="hidden" id="sessionagentId" value="${userSession.agentId!}"/>
		<input type="hidden" id="sessionadvertiserId" value="${userSession.advertiserId!}"/>
		<input type="hidden" id="sessionoUserSysType" value="${userSession.sysType!}"/>
	</div>    		
</div>	   	